package com.victor.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.Series;

@Mapper
public interface SeriesDao {
	int batchDelete(@Param("ids") int[] ids);

	int insertSeries(Series record);

	Series findById(Integer sId);

	int update(Series record);

	List<Series> getSeries(@Param("sName") String sName, @Param("ageIds") int[] ageIds,
			@Param("categoryIds") int[] categoryIds, @Param("copyrightid") Integer copyrightid,@Param("flag")String flag);

	List<Series> getAudioSeries(@Param("sName") String sName, @Param("ageIds") int[] ageIds,
			@Param("categoryIds") int[] categoryIds, @Param("copyrightid") Integer copyrightid,@Param("flag")String flag);

	List<Map<String, String>> getSearch(@Param("name") String name, @Param("ageIds") int[] ageIds,
			@Param("categoryIds") int[] categoryIds, @Param("pictype") String pictype, @Param("userid") String userid,@Param("flag")String flag);

	Map<String, String> getDetails(@Param("sid") Integer sid);

	List<Map<String, String>> getPicByCategory(@Param("pictype")String pictype,@Param("userid") String userid);
}